{% extends 'web/template.html' %}
{% block title %}我的{% endblock %}

{% block head %}
<style>
    .user-container {
        padding: 20px;
        max-width: 800px;
        margin: 0 auto;
    }

    /* 用户信息卡片 */
    .user-card {
        background: #fff;
        border-radius: 12px;
        padding: 20px;
        display: flex;
        align-items: center;
        margin-bottom: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .user-avatar {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        margin-right: 20px;
        object-fit: cover;
        border: 2px solid #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .user-info {
        flex: 1;
    }

    .user-name {
        font-size: 20px;
        font-weight: 500;
        color: #333;
        margin-bottom: 5px;
    }

    .user-desc {
        font-size: 14px;
        color: #666;
    }

    /* 功能导航网格 */
    .feature-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .feature-item {
        background: #fff;
        border-radius: 12px;
        padding: 15px;
        cursor: pointer;
        transition: all 0.3s;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        display: flex;
        align-items: center;
    }

    .feature-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .feature-icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        margin-right: 10px;
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .feature-info {
        flex: 1;
    }

    .feature-title {
        font-size: 14px;
    }

    .feature-desc {
        font-size: 11px;
    }

    /* 图标背景颜色 */
    .bg-blue { background: #1E9FFF; }
    .bg-green { background: #5FB878; }
    .bg-orange { background: #FFB800; }
    .bg-red { background: #FF5722; }
    .bg-purple { background: #9C27B0; }
    .bg-cyan { background: #00BCD4; }
    .bg-brown { background: #795548; }
    .bg-pink { background: #E91E63; }
    .bg-teal { background: #009688; }

    /* 移动端适配 */
    @media screen and (max-width: 767px) {
        .user-container {
            padding: 15px;
        }

        .feature-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        .user-avatar {
            width: 60px;
            height: 60px;
        }

        .user-name {
            font-size: 18px;
        }
    }

    
</style>
{% endblock %}

{% block content %}
{% include 'web/components/线路选择.html' %}
<div class="user-container">
    <!-- 返回按钮 -->
    {% include 'web/components/公共配置/返回上一页.html' %}

    <!-- 用户信息卡片 -->
    <div class="user-card">
        <img src="https://argue.tcticx.com/usr/themes/Mirages/images/logo.jpeg" alt="用户头像" class="user-avatar">
        <div class="user-info">
            <div class="user-name">默认用户</div>
            <div class="user-desc">这个人很懒，什么都没有留下</div>
        </div>
    </div>

    <!-- 功能导航网格 -->
    <div class="feature-grid">
        <!-- 我的收藏 -->
        <div class="feature-item" onclick="goToFeature('/web/my_collection/')">
            <div class="feature-icon bg-blue">
                <i class="layui-icon layui-icon-star"></i>
            </div>
            <div class="feature-info">
                <div class="feature-title">我的收藏</div>
                <div class="feature-desc">收藏的内容</div>
            </div>
        </div>

       

        

      
    </div>

    {% include 'web/components/联系方式.html' %}
</div>
{% endblock %}

{% block script %}
<script>
    function goToFeature(feature) {
        // 判断是否是外部链接
        window.location.href = feature;
    }

 
</script>
{% endblock %}